package com.phillong.observer.basic;

/**
 * @author zhangpeng
 * 观察者模式测试类
 */
public class ObserverTest {

    public static void main(String[] args) {

        WeatherData weatherData = new WeatherData();

        CurrentConditionDisplay conditionDisplay = new CurrentConditionDisplay(weatherData);

        weatherData.setMeasurements(80,65,30.4f);
        weatherData.setMeasurements(82,50,31);
        weatherData.setMeasurements(86,43,32);
    }
}
